Backend nodes configuration
Host and ports
Backend node applications expose a self-hosted HTTP API. The host address and port of those API's can be configured in a few ways.
Environment variable
Host and port can be set by using the environment variables ASPNETCORE_URLS
or URLS
. For example:
ASPNETCORE_URLS="http://localhost:5001;https://localhost:5002"
Note: This approach is dedicated when each application is hosted in an isolated container like Docker containers.
Setting file
Each application host and port can be also set by Urls
property defined in the root level in appSettings.json
file. For example:
{
"Urls": "http://localhost:5001;https://localhost:5002"
}
Command line argument
Set the host and port with the --urls
parameter when running from the command line. For example:
.\Meniga.TriggeringEngine.exe --urls "http://localhost:5001;https://localhost:5002"
Configuration sources priority
The priority of configuration is as followed:
ASPNETCORE_URLS
environment variable- configuration files like
appSettings.json
URLS
environment variable- command line arguments
Each configuration source down the list overrides a variable from the previous source.